
using FriendStar.Domain.Entity.WareHouse;
using FriendStar.Domain.IRepository.WareHouse;
using FriendStar.Repository.WareHouse;
using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugarRepository;

namespace CopyrightFriendStar.Application.WareHouse
{
    public class CYK_17_JG_StoLJKPriceApp
    {
        private ICYK_17_JG_StoLJKPriceRepository service = new CYK_17_JG_StoLJKPriceRepository();

        public List<CYK_17_JG_StoLJKPriceEntity> GetList()
        {
            return service.IQueryable().ToList();
        }
        public CYK_17_JG_StoLJKPriceEntity GetForm(string keyValue)
        {
            return service.FindEntity(keyValue);
        }
        public void DeleteForm(string keyValue)
        {
            
        }
        public void SubmitForm(CYK_17_JG_StoLJKPriceEntity CYK_17_JG_StoLJKPriceEntity, string keyValue)
        {
            if (!string.IsNullOrEmpty(keyValue))
            {
                service.Update(CYK_17_JG_StoLJKPriceEntity);
            }
            else
            {
                service.Insert(CYK_17_JG_StoLJKPriceEntity);
            }
        }
    }
}
